package com.boarsoft.boar.batch.entity;

import java.io.Serializable;

/**
 * @author tao.wang57
 * @Description: 批量执行概要监息表 (batch_summary)
 * @date 2024-03-06
 */
public class BatchSummary implements Serializable {

    private static final long serialVersionUID = -2888002976316326337L;

    /** 技术主键*/
    private String id;

    /** 任务id */
    private String batchId;

    /** 执行总条数 */
    private int totalCount;

    /** 成功条数 */
    private int succCount;

    /** 处理异常条数 */
    private int errCount;

    /** 程序跳过条数 */
    private int skipCount;

    /** 执行概要监息 */
    private String summary;

    /** 创建时间 */
    private String lastTime;

    /**
     * 第几次执行
     */
    protected short no = 1;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBatchId() {
        return batchId;
    }

    public void setBatchId(String batchId) {
        this.batchId = batchId;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getSuccCount() {
        return succCount;
    }

    public void setSuccCount(int succCount) {
        this.succCount = succCount;
    }

    public int getErrCount() {
        return errCount;
    }

    public void setErrCount(int errCount) {
        this.errCount = errCount;
    }

    public int getSkipCount() {
        return skipCount;
    }

    public void setSkipCount(int skipCount) {
        this.skipCount = skipCount;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getLastTime() {
        return lastTime;
    }

    public void setLastTime(String lastTime) {
        this.lastTime = lastTime;
    }

    public short getNo() {
        return no;
    }

    public void setNo(short no) {
        this.no = no;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("BatchSummary{");
        sb.append("id='").append(id).append('\'');
        sb.append(", batchId='").append(batchId).append('\'');
        sb.append(", totalCount=").append(totalCount);
        sb.append(", succCount=").append(succCount);
        sb.append(", errCount=").append(errCount);
        sb.append(", skipCount=").append(skipCount);
        sb.append(", summary='").append(summary).append('\'');
        sb.append(", lastTime='").append(lastTime).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
